const {createServers,buildWebProject}= require("./common/index.js")
const chat_server = require('./lib/chat_server')
const routers= require("./routers/index.js")
const http = require('http')
process.env.rootDir= process.cwd()

createServers(8013,(app,static)=>{
    routers(app,static)
    var http_= http.Server(app)
    chat_server.listen(http_)
    http_.listen(7001, function(){
        console.log('监听socket :7001');
    });
    console.log('服务器已开启')
})

buildWebProject(["webindex","chatRoom"])
